﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTM.Domain
{
    /// <summary>
    /// Interface <see cref="ServiceBase"/> define base service.
    /// </summary>
    /// <typeparam name="T">Entity type.</typeparam>
    public interface IServiceBase<T>
        where T : class
    {
        #region Methods

        /// <summary>
        /// Validates the specified entity.
        /// </summary>
        /// <param name="entity">The entity.</param>
        /// <returns>True if not null and valid</returns>
        bool IsValid(T entity);

        #endregion Methods
    }
}